package com.example.xlmkotlinwanandroid.ui.adapter

import androidx.fragment.app.Fragment
import androidx.fragment.app.FragmentActivity
import androidx.fragment.app.FragmentManager
import androidx.lifecycle.Lifecycle
import androidx.viewpager2.adapter.FragmentStateAdapter


class ProjectPagerAdapter(fm: FragmentActivity, private val fragments: List<Fragment>) : FragmentStateAdapter(fm) {


    override fun getItemCount()= fragments.size
    override fun createFragment(position: Int)= fragments[position]

}
